#include<stdio.h>
#include<unistd.h>

int main()
{
    pid_t id = fork();
    if(id == 0)
    {
        printf("i am child process pid : %d,ppid :%d",getpid(),getppid());
        sleep(5);
        exit(-1);
    }
    else 
    {
        while(1)
        {

        printf("i am parent process pid : %d ,ppid :%d",getpid(),getppid());
        }
    }
}
